from typing import Dict, Any
from protocol.encoder import encode_field


def build_body(common: Dict[str, Any], frame_cfg: Dict[str, Any], state: Dict[str, Any], **params) -> bytes:
    """构建消息体，直接使用配置作为编码参数"""
    return encode_field(frame_cfg, state, path=['body'], **params)


